var $ = require('../../lib/jquery');
var util = require('./common/util');
var nav = require('./common/nav');
var _header = require('./common/header');
var template = require('../tpl/template');
var _nav = new nav();
var header = new _header();
var minHeight = require('./common/minHeight');
minHeight.init();
if ( util.getParam('type')==1){
     $('.f-title').html('当前位置：<span class="js_index">首页</span> > <span class="js_yiyuan">医院</span>  > <span>医院详情</span></div>')

}else{
    $('.f-title').html('当前位置：<span class="js_index">首页</span> > <span class="js_map">电子地图</span>  > <span>医院详情</span></div>')
}
util.getParam('type')
$('.js_map').on('click',function(){
    location.href='./map.html'
})
$('.js_index').on('click',function(){
    location.href='./index.html'
})
$('.js_yiyuan').on('click',function(){
    history.back();
})
var tpl=template('mapxq',{data:JSON.parse(sessionStorage.getItem('map'))});
$('.js_jgxq').html(tpl);
